package com.gzx.plugin.tjzy.modular.blacklist.mapper;

import com.gzx.plugin.tjzy.modular.blacklist.entity.GzxBlackList;
import com.gzx.plugin.tjzy.modular.blacklist.vo.GzxBlackListVo;
import org.apache.ibatis.annotations.Insert;
import vip.xiaonuo.common.mapper.BaseMapperPlus;

/**
 * @author xbl
 */
public interface GzxBlackListMapper extends BaseMapperPlus<GzxBlackList, GzxBlackListVo> {
    @Insert("<script>" +
            "INSERT IGNORE INTO gzx_blacklist (phone, `type`,tenant_id,create_user,belonging_month) VALUES (#{phone}, #{type},#{tenantId}, #{createUser},#{belongingMonth})" +
            "</script>")
    void insertIgnore(GzxBlackList blackList);

    @Insert("<script> " +
            "INSERT IGNORE INTO gzx_blacklist (phone, `type`,belonging_month ,tenant_id,create_user) " +
            "VALUES ${valSql}" +
            "</script>")
    void insertBatchSql(String batchSql);
}
